<?php
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
model('core/core')->checklogin();
if($_RQ['op']=='list'){
		$return=array();
		$openid=$_RQ['openid']?:$_SESSION['openid'];
		$plugin_name=$_RQ['plugin_name'];
		$type='api';
		$id=$_RQ['id'];
		$return=$this->get_active($type,0,0,$openid,'','',$plugin_name,$id);
		$return['plugin_name']=$plugin_name;
		$basic=$this->plugin_setting('basic');
        $return['member']['nickname']=$return['member']['nickname']?:'匿名';
		$img=$return['member']['avatar']?:$basic['share_image'];
		$img=tomedia($img);
		if($return['title']){
			$title='《'.$return['title'].'》';
		}
		$return['sharedata']=array(
			'title'=>$return['member']['nickname'].'的'.$title.'海报',
			'desc'=>$return['member']['nickname'].'的'.$title.'海报,欢迎分享！！',
			'link'=>custom_url('jy_poster/apibuild//openid='.$openid.'&fromuser='.$_SESSION['uid'].'&plugin_name='.$plugin_name,true),
			'imgUrl'=>$img,
		);
		set_html('title',$return['member']['nickname'].'的'.$title.'海报');
		exi($return);
}
?>